﻿using RobotLib.IWebSocket;
using System;
using System.Threading.Tasks;
using WebSocket4Net;

namespace YunheRobotLib
{
	public class Program
	{
		static string _url = "ws://localhost:8080/websocket/Zhonghai";
		static IWebSocket aa = new IWebSocket();
		static async Task Main(string[] args)
		{
			aa.closed += reStart;
			aa.Start(_url);
		}

		public static void reStart()
		{
			Console.WriteLine("111111111111111");
			aa.Start(_url);
		}
	}
}
